﻿<UserControl x:Class="TextAnalytics.Views.WordListView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="500"
             Loaded="WordListView_Loaded">
    <DockPanel>
        <StackPanel Orientation="Vertical" Width="150" DockPanel.Dock="Right" Margin="10">
            <TextBlock Text="Search" FontSize="13" Margin="0 0 0 5"/>
            <TextBox HorizontalAlignment="Stretch" />
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <Button Margin="10 5">Prev</Button>
                <Button Margin="10 5">Next</Button>
            </StackPanel>
        </StackPanel>
        <ListView ItemsSource="{Binding Words}">
            <ListView.View>
                <GridView>
                    <GridView.Columns>
                        <GridViewColumn Header="Rank" DisplayMemberBinding="{Binding Rank}"></GridViewColumn>
                        <GridViewColumn Header="Frequency"  DisplayMemberBinding="{Binding Frequency}"></GridViewColumn>
                        <GridViewColumn Header="Word" DisplayMemberBinding="{Binding Text}" Width="200" />
                    </GridView.Columns>
                </GridView>
            </ListView.View>
        </ListView>
    </DockPanel>
</UserControl>
